<html xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:insert="~{ /common/common_header:: meta('本地视图配置')}"></div>
    <div th:insert="~{ /common/common_header:: base}"></div>
    <div th:insert="~{ /common/common_header:: table}"></div>
    <div th:insert="~{ /common/common_header:: editable}"></div>

</head>
<body>
<!--模态框loading-->
<div th:insert="~{ /common/common_loading:: loading}"></div>
<!--模态框loading-->
<!--顶部导航条(用户信息)-->
<div th:insert="~{ /common/common_bar:: navbar}"></div>
<!--顶部导航条(用户信息)-->
<!--主体-->
<div class="container-fluid ">
    <div class="row">
        <!--左侧导航栏-->
        <div th:insert="~{ /common/common_menu:: menus}"></div>
        <!--左侧导航栏-->

        <!--右侧主题部分 configEdit start-->
        <div class="col-xs-12 col-sm-9 col-lg-10" id="configEdit" style="display: inline-block">

            <!--通用的tab-->
            <div th:insert="~{ /common/common_tab::tab('本地关联视图')}"></div>
            <!--通用的tab-->

            <!--工具栏-->
            <div th:insert="~{ /common/common_bar:: toolbar('本地筛选')}"></div>
            <!--工具栏-->

            <!--modal-->
            <!-- 模态框（Modal） -->
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title" id="myModalLabel">选择扫描的用户配置</h4>
                        </div>
                        <div class="modal-body">

                            <form id="scan_form" class="form-horizontal" method="post">
                                <div class="form-group required">
                                    <label for="" class="col-sm-2 control-label required">用户</label>
                                    <div class="col-sm-9">
                                        <select class="js-example-basic-single form-control val" name="scan_user">
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group required">
                                    <label for="" class="col-sm-2 control-label required">版本</label>
                                    <div class="col-sm-9">
                                        <select class="js-example-basic-single form-control val" name="scan_version">
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group required">
                                    <label for="" class="col-sm-2 control-label">本地路径</label>
                                    <div class="col-sm-9">
                                        <textarea class="form-control val" name="scan_path_local" placeholder="多个路径用,分隔 /Users/zhongjiafeng/Desktop/OSChina/TicketA/,
                                                  /Users/zhongjiafeng/Desktop/OSChina/TicketB/"
                                                  type="text"

                                        ></textarea>
                                    </div>
                                </div>
                            </form>

                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary" onclick="modalConfirm()">确认</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal -->
            </div>
            <!--modal-->

            <!--列表-->
            <div th:insert="~{ /common/common_body:: list}"></div>
            <!--列表-->

            <!--用做信息的添加或者删除-->
            <form id="add" class="form-horizontal" method="post" style="display: none">
                <div class="panel panel-default" style="position: relative">
                    <div class="panel-heading">
                        <h3 class="panel-title" style="display: inline-block" id="typeTitle">本地模块添加</h3>
                        <div style="position: absolute;right: 0.5%;top: 0.25%">
                            <button class="btn btn-primary" type="button" style="" onclick="confirmVal()">确定</button>
                            <button class="btn btn-danger" type="button" style="" onclick="clearVal()">清空</button>
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="form-group required">
                            <label class="col-sm-2 control-label" for="">模块父路径</label>
                            <div class="col-sm-9">
                                <input class="form-control val" name="parent"
                                       placeholder="/Users/zhongjiafeng/Desktop/OSChina/Ticket"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label class="col-sm-2 control-label" for="">模块名称</label>
                            <div class="col-sm-9">
                                <input class="form-control val" name="name"
                                       placeholder="boot-client-auth"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">类型</label>
                            <div class="col-sm-9">
                                <label class="checkbox-inline">
                                    <input type="radio" class="val dep" name="type" value="0" checked> 依赖
                                </label>
                                <label class="checkbox-inline">
                                    <input type="radio" class="val ser" name="type" value="1"> 服务
                                </label>
                            </div>
                        </div>

                        <!--0:不忽视,1:忽视-->
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">忽视</label>
                            <div class="col-sm-9">
                                <label class="checkbox-inline">
                                    <input type="radio" class="val no" name="ignore" value="1" checked> 否
                                </label>
                                <label class="checkbox-inline">
                                    <input type="radio" class="val yes" name="ignore" value="0"> 是
                                </label>
                            </div>
                        </div>


                        <!--联动-->
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">用户版本</label>
                            <div class="col-sm-3">
                                <select class="js-example-basic-single form-control val" name="user">
                                </select>
                            </div>
                            <div class="col-sm-6">
                                <select class="js-example-basic-single form-control val" name="version">
                                </select>
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">输出类型</label>
                            <div class="col-sm-9">
                                <label class="checkbox-inline">
                                    <input type="radio" name="output_type" checked value=0
                                           onclick="hideOtherConfig()" class="val standard"> 标准输出
                                </label>
                                <label class="checkbox-inline">
                                    <input type="radio" name="output_type" value=1
                                           onclick="showOtherConfig()" class="val custom"> 自定义输出
                                </label>
                            </div>
                        </div>

                        <!-- 标准输出,隐藏;自定义输出,显示-->
                        <div class="form-group hide show-flag">
                            <label for="" class="col-sm-2 control-label">src</label>
                            <div class="col-sm-9">
                                <input type="text" name="src" class="form-control val" placeholder="src目录相对于项目名称所在的路径">
                            </div>
                        </div>
                        <div class="form-group hide show-flag">
                            <label for="" class="col-sm-2 control-label">pom</label>
                            <div class="col-sm-9">
                                <input type="text" name="pom" class="form-control val"
                                       placeholder="pom.xml相对于项目名称所在的路径,默认/pom.xml">
                            </div>
                        </div>
                        <div class="form-group hide show-flag">
                            <label for="" class="col-sm-2 control-label">target</label>
                            <div class="col-sm-9">
                                <input type="text" name="target" class="form-control val"
                                       placeholder="target目录相对于项目名称所在的路径,默认/target">
                            </div>
                        </div>
                        <div class="form-group hide show-flag">
                            <label for="" class="col-sm-2 control-label">jar</label>
                            <div class="col-sm-9">
                                <input type="text" name="jar" class="form-control val"
                                       placeholder="输出的.jar文件相对目录名称所在的路径,默认/target/*.jar">
                            </div>
                        </div>
                        <div class="form-group hide show-flag">
                            <label for="" class="col-sm-2 control-label">lib</label>
                            <div class="col-sm-9">
                                <input type="text" name="lib" class="form-control val"
                                       placeholder="依赖分离的lib目录,相对于项目名称,默认/target/lib">
                            </div>
                        </div>
                        <div class="form-group hide show-flag">
                            <label for="" class="col-sm-2 control-label">resource</label>
                            <div class="col-sm-9">
                                <input type="text" name="resource" class="form-control val"
                                       placeholder="配置分离的resource目录位置,相对于项目名称,默认/target/resource">
                            </div>
                        </div>


                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-9">
                                <textarea type="text" name="desc" class="form-control val"
                                          placeholder="本地模块描述"></textarea>
                            </div>
                        </div>
                        <!-- 标准输出,隐藏;自定义输出,显示-->

                    </div>
                </div>
            </form>
            <!--用做信息的添加或者删除-->
        </div>
        <!--右侧主题部分 configEdit end-->

    </div>
</div>
</div>
<!--都要依赖的基础js-->
<div th:insert="~{ /common/common_foot:: base}"></div>
<!--表格相关-->
<div th:insert="~{ /common/common_foot:: table}"></div>
<!--提示框 alert confirm-->
<div th:insert="~{ /common/common_foot:: bootbox}"></div>
<!--导出表格-->
<div th:insert="~{ /common/common_foot:: export}"></div>
<!--行内编辑,放在表格初始化之后-->
<div th:insert="~{ /common/common_foot:: editable}"></div>

<script th:src="@{/assets/js/local/module/module.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/local/module/ajax.js}" type="text/javascript"></script>
</body>
</html>
